package com.lifeng.shop.lifengshop.mapper;

import com.lifeng.shop.lifengshop.pojo.bo.Orderdetail;
import com.lifeng.shop.lifengshop.pojo.entry.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Fusion
 */
@Repository
public interface OrderMapper {
    int deleteByPrimaryKey(Order order);

    int insert(Order record);

    int insertdetail(Orderdetail order);

    int insertSelective(Order record);

    List<Order> selectByPrimaryKey(String uid);

    List<Orderdetail> selectAllOrder(String uid);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    int insertOrderDetail(Orderdetail orderdetail);
}